<table class="table table-responsive" id="orders-table">
    <thead>
        <th>
        <input type="checkbox" id="check-all">
        </th>
        <th>ID</th>
        <th>用户昵称</th>
        <th>收货人名称</th>
        <th>收货人地址</th>
        <th>收货人手机</th>
        <th>编号</th>
        <th>状态</th>
        <th>支付类型</th>
        <th>支付状态</th>
        <th>打印状态</th>
        <th>备注</th>
        <th>商品总数</th>
        <th>总价格</th>
        <th>使用积分</th>
        <th>支付金额</th>
        <th>是否自提</th>
        <th>配送区域</th>
        <th>配送时间</th>
        {{--<th>Shipping Status</th>--}}
        {{--<th>Express Type</th>--}}
        {{--<th>Express Sn</th>--}}
        {{--<th>Express Info</th>--}}
        {{--<th>Json</th>--}}
        {{--<th>Request Params</th>--}}
        <th>支付时间</th>
        <th>创建时间</th>
        <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($orders as $order)
        <tr>
            <td>
                <input class="check-print" type="checkbox" data-id="{!! $order->id !!}">
            </td>
            <td>{!! $order->id !!}</td>
            <td>{!! $order->user->nickname !!}</td>
            @if(isset($order->address))
                <td>{{ $order->address->name }}</td>
                <td>{{ $order->address->address }}</td>
                <td>{{ $order->address->phone }}</td>
            @else
                <td>无</td>
                <td>无</td>
                <td>无</td>
            @endif
            <td>{!! $order->sn !!}</td>
            <td>
            @if($order->status==-1)
                已取消
            @elseif($order->status==1)
                待付款
            @elseif($order->status==2)
                <span style="color:#E26A72;">待发货</span>
            @elseif($order->status==3)
                配送中
            @elseif($order->status==4)
                <span style="color:#94C572;">已收货</span>
            @elseif($order->status==5)
                <span style="color:#94C572;">已完成</span>
            @elseif($order->status==11)
                <span style="color:#E6B600;">退款申请</span>
            @elseif($order->status==12)
                退款成功
            @elseif($order->status==13)
                退款失败
            @endif
            </td>
            <td>{!! $order->pay_type==1?'积分支付':'微信支付' !!}</td>
            <td>{!! $order->pay_status==1?'已支付':'未支付' !!}</td>
            <td>
            @if($order->pay_status==0)
                    <span style="color:#E26A72;">无需打印</span>
            @elseif($order->is_print==1)
                    <span style="color:#94C572;">已打印</span>
            @else
                    <span style="color:#E26A72;">未打印</span>
            @endif
            </td>
            <td>{!! $order->remark !!}</td>
            <td>{!! $order->goods_number !!}</td>
            <td>{!! $order->price !!}</td>
{{--            <td>{!! $order->acquire_integral !!}</td>--}}
            <td>{!! $order->use_integral !!}</td>
            <td>{!! $order->pay_money !!}</td>
            <td>{!! $order->will_take==1?'自提':'配送' !!}</td>
            <td>{!! $order->shipping_area !!}</td>
            <td>{!! $order->shipping_at !!}</td>
            {{--<td>{!! $order->shipping_status !!}</td>--}}
            {{--<td>{!! $order->express_type !!}</td>--}}
            {{--<td>{!! $order->express_sn !!}</td>--}}
            {{--<td>{!! $order->express_info !!}</td>--}}
            {{--<td>{!! $order->json !!}</td>--}}
            <td>{!! $order->pay_at !!}</td>
            <td>{!! $order->created_at !!}</td>
            <td>
                {{--{!! Form::open(['route' => ['orders.destroy', $order->id], 'method' => 'delete']) !!}--}}
                {{--<div class='btn-group'>--}}
                    {{--<a href="{!! route('orders.show', [$order->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>--}}
                    {{--<a href="{!! route('orders.edit', [$order->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>--}}
                    {{--{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}--}}
                {{--</div>--}}
                {{--{!! Form::close() !!}--}}
                <a href="{!! route('orders.fahuozhong', [$order->id]) !!}" onclick="return confirm('是否把订单改为配送中')" class='btn btn-default btn-xs'>配送中</a>
                <a href="{!! route('orders.shouhuo', [$order->id]) !!}" onclick="return confirm('是否把订单改为已收货')" class='btn btn-default btn-xs'>已收货</a>
                <a href="{!! route('orders.peisongdan', [$order->id]) !!}" target="_blank" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
                <a href="{!! route('orders.edit', [$order->id]) !!}" target="_blank" class='btn btn-default btn-xs'>修改</a>
            </td>
        </tr>
    @endforeach
    </tbody>
</table>